v_cc_library(
  NAME segment_meta_cstore
  SRCS
    segment_meta_cstore.cc
  DEPS
    v::bytes
    v::model
    absl::btree
    v::config
)

v_cc_library(
  NAME cloud_storage
  SRCS
    base_manifest.cc
    cache_service.cc
    access_time_tracker.cc
    cache_probe.cc
    download_exception.cc
    topic_manifest.cc
    partition_manifest.cc
    recursive_directory_walker.cc
    remote.cc
    remote_file.cc
    offset_translation_layer.cc
    remote_probe.cc
    read_path_probes.cc
    types.cc
    remote_segment.cc
    remote_partition.cc
    remote_segment_index.cc
    tx_range_manifest.cc
    materialized_resources.cc
    segment_state.cc
    recovery_errors.cc
    recovery_request.cc
    recovery_utils.cc
    segment_meta_cstore.cc
    segment_chunk.cc
    segment_chunk_api.cc
    segment_chunk_data_source.cc
    async_manifest_view.cc
    materialized_manifest_cache.cc
  DEPS
    Seastar::seastar
    v::bytes
    v::http
    v::cloud_storage_clients
    v::json
    v::model
    v::rphashing
    v::cloud_roles
    v::segment_meta_cstore
    v::raft
    # NOTE: do not add v::cloud as a dependency
)
add_subdirectory(tests)
